<template>
	<view class="home-box">
		<view class="home-header">
			<view class="left-name">
				<u-icon name="map-fill" color="#f5c576" size="20" style="margin-right: 10rpx;"></u-icon>
				<text>苏中智慧物流园</text>
			</view>
		</view>
		<view class="box-main">
			<view class="box-nav" @tap="toRouter('/appoint/index')">
				<image class="left-icon" src="../../static/yq.png" mode="aspectFill"></image>
				<view class="right">
					<view class="top">
						园区预约
					</view>
					<view class="bto">
						Park reservation
					</view>
				</view>
			</view>
			<view class="box-nav" @tap="toRouter('/appoint/sign/index')">
				<image class="left-icon" src="../../static/qd.png" mode="aspectFill"></image>
				<view class="right">
					<view class="top">
						园区签到
					</view>
					<view class="bto">
						Park sign in
					</view>

				</view>
			</view>
			<view class="box-nav" @tap="toRouter('/appoint/history/index')">
				<image class="left-icon" src="../../static/ds.png" mode="aspectFill"></image>
				<view class="right">
					<view class="top">
						预约订单
					</view>
					<view class="bto">
						Reservation Order
					</view>
				</view>
			</view>
			<view class="box-nav" @tap="toRouter('/pages/map/index')">
				<image class="left-icon" src="../../static/dh.png" mode="aspectFill"></image>
				<view class="right">
					<view class="top">
						园区导航
					</view>
					<view class="bto">
						Park Navigation
					</view>
				</view>
			</view>

		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello'
			}
		},
		onLoad() {

		},
		methods: {
			toRouter(utem) {
				uni.navigateTo({
					url: utem
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.home-box {
		width: 100%;
		min-height: 100vh;
		background: #f8f8f8;


		.home-header {
			width: 100%;
			height: 100rpx;

			.left-name {
				width: 100%;
				height: 100rpx;
				display: flex;
				align-items: center;
				justify-content: left;
				padding: 0 30rpx;
				font-size: 28rpx;
				box-sizing: border-box;

				.dw {
					width: 28rpx;
					height: 28rpx;
					margin-right: 10rpx;
				}
			}
		}

		.box-main {
			width: 100%;
			min-height: 100vh;
			padding: 0 30rpx;
			box-sizing: border-box;
			margin-top: 40rpx;

			.box-nav {
				width: 100%;
				height: 200rpx;
				box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
				border-radius: 20rpx;
				display: flex;
				align-items: center;
				padding: 0 20rpx;
				box-sizing: border-box;
				margin-bottom: 30rpx;
				background: #fff;

				.left-icon {
					width: 120rpx;
					height: 120rpx;
				}

				.right {
					width: 300rpx;
					height: 200rpx;
					margin-left: 40rpx;
					padding-top: 60rpx;
					box-sizing: border-box;

					.top {
						width: 100%;
						font-size: 36rpx;
						color: #333;
						font-weight: 600;
					}

					.bto {
						width: 100%;
						font-size: 28rpx;
						color: #969696;
						font-weight: 400;
					}

					&:hover {
						text-decoration: 1px solid #333;
					}
				}
			}
		}
	}
</style>
